﻿@model StudentInformationManagement.Models.StuInfo

@{
    ViewBag.Title = "添加学生";
}

<h2>添加学生</h2>

@using (Html.BeginForm("Create", "StuInfo", FormMethod.Post))
{
    <div class="form-group">
        @Html.LabelFor(model => model.StuId, htmlAttributes: new { @class = "control-label" })
        @Html.EditorFor(model => model.StuId, new { htmlAttributes = new { @class = "form-control", required = "required" } })
    </div>
    <div class="form-group">
        @Html.LabelFor(model => model.StuName, htmlAttributes: new { @class = "control-label" })
        @Html.EditorFor(model => model.StuName, new { htmlAttributes = new { @class = "form-control", required = "required" } })
    </div>
    <!-- Add other fields as needed -->

    <button type="submit" class="btn btn-default">添加学生</button>
}

<p>
    @Html.ActionLink("返回学生列表", "Index")
</p>
